FROM java:latest

MAINTAINER miou

VOLUME /tmp

ADD eureka-server-0.0.1.jar app.jar

RUN sh -c 'touch /app.jar'

RUN echo 'Asia/Shanghai' > /etc/timezone

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

#EXPOSE 10011

ENV JAVA_OPTS=""

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
